package com.cskaoyan.user.dal.entitys;

import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "tb_member")
@Data
@ToString
public class User {
    @Id
    private Long id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码 md5加密存储
     */
    private String password;

    /**
     * 注册手机号
     */
    private String phone;

    /**
     * 注册邮箱
     */
    private String email;

    private String sex;

    private String address;

    private Integer state;

    private String description;

    private BigDecimal balance;

    private String isverified;

    private Integer points;


    /**
     * 头像
     */
    private String file;

    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date created;

    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date updated;


}